Manuscript: Time for a Haircut: Political Regimes and Sovereign Debt Restructurings

Author: Ignacio Mamone 

Journal: International Interactions

INSTRUCTIONS FOR REPLICATION 

1) Install user-written Frederick Boehmke's "DURSEL" program for Stata.
   Package available for download at: https://myweb.uiowa.edu/fboehmke/methods.html
   * I downloaded it from Stata after typing: help dursel
   * You may use the manual installation:
    A.  Download DURSEL.zip in binary mode from https://myweb.uiowa.edu/fboehmke/methods.html
    B.  Unzip the .ZIP file.
    C.	Copy the five "*sel.*" files into your personal ado directory.

2) Install user-written William Burke's "Craggit" program for Stata.
   * I downloaded it from Stata after typing: help craggit

3) Load the dataset "time_for_a_haircut.dta" into Stata.

4) Open the do-file "time_for_a_haircut.do" in Stata and follow instructions from annotated code to replicate Tables 1, 2, S.2., S.3, S.4, S.5, S.6, S.7, S.8 and Figures 2, S.1 and S.2.

5) Open the do-file "uncertainty.do" in Stata and follow instructions from annotated code to replicate the Cox Survival Models and the Double-Hurdle Models incorporating the uncertainty parameters from the posteriors data provided by Varieties of Democracy (V.6) saved in the "vdem_posteriors.dta" dataset located in the supplementary materials' folder.
These computations also use the "time_for_a_haircut.dta" dataset, which will be merged with the posteriors dataset following the enclosed instructions.

6) In R, open the RScript "time_for_a_haircut_coxed.R" and follow instructions from annotated code to replicate Figures 1, 3, and 4. These computations also use the "time_for_a_haircut.dta" dataset.
The RScript lists all packages that must be installed and loaded to conduct the analysis and generate the graphics in high resolution.


